﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Edit.aspx.cs" Inherits="Staff_Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="../Style/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <asp:Label ID="Label1" runat="server" Text="Edit staff" 
                Font-Size="X-Large"></asp:Label>
                <span style="width:50px">&nbsp</span>
            <a href="View.aspx">back</a>
            <br />
            <br />
            <br />
        <table style="width:100%;">
            <tr>
                <td style="width:13%;">
                    <asp:Label ID="Label2" runat="server" Text="Name:"></asp:Label>
                </td>
                <td style="width:22%;">
                    <asp:TextBox ID="txtName" runat="server" style="width:239px"></asp:TextBox>
                </td>
                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtName" ErrorMessage="Please Enter a Name"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label3" runat="server" Text="Surname:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtSurname" runat="server" style="width:239px"></asp:TextBox>
                </td>
                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtSurname" ErrorMessage="Please Enter a Surname"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label4" runat="server" Text="Role:"></asp:Label>
                </td>
                <td>
                    <asp:DropDownList ID="ddlPosition" runat="server" style="width:239px">
                    </asp:DropDownList>
                </td>
                <td>&nbsp</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="Label5" runat="server" Text="Hire Date:"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtHireDate" runat="server" style="width:239px"></asp:TextBox>
                </td>
                <td><asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="txtHireDate" ErrorMessage="Please select a date"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
                <td>&nbsp</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:Button ID="editStaff" runat="server" Text="Edit Staff" style="width:159px" 
                         onclick="editStaff_Click"  />
                </td>
            </tr>            
        </table>
    </div>
    </form>
</body>
</html>
